import request from '@/utils/request'

// 统一删除
export function delConfig(params) {
  return request({
    url: '/cms/delConfig',
    method: 'post',
    data: params
  })
}
// 支付场景列表
export function sceneList(params) {
  return request({
    url: '/cms/sceneList',
    method: 'post',
    data: params
  })
}
// 支付场景—编辑
export function sceneEdit(params) {
  return request({
    url: '/cms/sceneEdit',
    method: 'post',
    data: params
  })
}

// Pay - 修改支付

export function updatePay(params) {
  return request({
    url: '/cms/payEdit',
    method: 'post',
    data: params
  })
}

// Pay - 删除支付

// export function deletePay(params) {
//   return request({
//     url: '/cms/delConfig',
//     method: 'post',
//     data: params
//   })
// }

// Pay - 支付管理

export function PayList(params) {
  return request({
    url: '/cms/payList',
    method: 'post',
    data: params
  })
}

// Pay - 添加支付

// export function addPay(params) {
//   return request({
//     url: '/ApiAdmin/Pay/addPay',
//     method: 'post',
//     data: params
//   })
// }
// 商户号配置—列表

export function merchList(params) {
  return request({
    url: '/cms/merchList',
    method: 'post',
    data: params
  })
}

// Pay - 添加支付

export function merchEdit(params) {
  return request({
    url: '/cms/merchEdit',
    method: 'post',
    data: params
  })
}

// 退款规则配置

export function refundcfgquery(params) {
  return request({
    url: '/cms/refundcfgquery',
    method: 'post',
    data: params
  })
}
// 退款规则配置 保存

export function refundcfgup(params) {
  return request({
    url: '/cms/refundcfgup',
    method: 'post',
    data: params
  })
}
